package com.irdstudio.apicenter.console.service.authenticate;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppWxModelDefine;
import com.irdstudio.apicenter.console.dm.AppWxModelDefineDao;


@Service(value = "appWxModelDefineService")
public class AppWxModelDefineService {
	
	@Autowired
	private AppWxModelDefineDao appWxModelDefineDao;
	

	public int insertOne(AppWxModelDefine appWxModelDefine) throws SQLException,
	ClassNotFoundException {
		return appWxModelDefineDao.save(appWxModelDefine);
	}
	
	public AppWxModelDefine queryAppTradePrivate(String dxModelId) throws SQLException {
		return appWxModelDefineDao.queryWithKeys(dxModelId);
	}
	
	public int update(AppWxModelDefine appWxModelDefine) throws SQLException,
		ClassNotFoundException {
		return appWxModelDefineDao.update(appWxModelDefine);
	}
	
	public int delete(String dxModelId ) throws SQLException,
		ClassNotFoundException {
		return appWxModelDefineDao.delete( dxModelId );
	}

}
